import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login.vue'),
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../views/register.vue'),
  },
  {
    path: '/info',
    name: 'info',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/Info.vue'),
  },
  {
    path: '/consult',
    name: 'consult',
    component: () => import('../views/consult.vue'),
  },
  {
    path: '/consult_details',
    name: 'consult_details',
    component: () => import('../views/consult_details.vue'),
  },
  {
    path: '/info/foreign_show',
    name: 'foreign_show',
    component: () => import('../views/foreign_show.vue'),
  },
  {
    path: '/info/industry_show',
    name: 'industry_show',
    component: () => import('../views/industry_show.vue'),
  },
  {
    path: '/info/new_show',
    name: 'new_show',
    component: () => import('../views/new_show.vue'),
  },
  {
    path: '/info/hot_show',
    name: 'hot_show',
    component: () => import('../views/hot_show.vue'),
  },
  {
    path: '/show_details',
    name: 'show_details',
    component: () => import('../views/show_details.vue'),
  },
  {
    path: '/exhibitionCenter',
    name: 'ExhibitionCenter',
    component: () => import('../views/ExhibitionCenter.vue')
  },
  {
    path: '/serviceProvider',
    name: 'ServiceProvider',
    component: () => import('../views/ServiceProvider.vue')
  },
  
  {
    path: '/exhibitionCenterDetail',
    name: 'ExhibitionCenterDetail',
    component: () => import('../views/ExhibitionCenterDetail')
  },
  {
    path: '/server',
    name: 'server',
    component: () => import('../views/server')
  },
  {
    path: '/CompanyHome',
    name: 'companyHome',
    component: () => import('../views/CompanyHome')
  }
  
]

const router = new VueRouter({
  mode: 'history',
  // base: process.env.BASE_URL,
  base: '/',
  routes
})

export default router
